#define CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
void* my_memorycpy(void* dest, const void* src, size_t num)
{
	void* ret = dest;
	assert(dest && src);
	while(num--)
	{
		*((char*)dest)++ = *((char*)src)++;
	};
	return ret;
}


int main()
{
	char arr1[] = "abcdef";
	char arr2[6] = { 0 };
	printf("%s\n", arr2);
	my_memorycpy(arr2, arr1,3);
	printf("%s\n", arr2);
	return 0;
}